package com.ailiwu.www.ailiwu.dao;

import android.content.ContentValues;

import com.ailiwu.www.ailiwu.bean.ChannelItem;

import java.util.List;
import java.util.Map;

/**
 * Author:    XiYoung
 * Version    V1.0
 * Date:      2015/12/5 000515:36
 * Description:用于处理Channel 自定义的接口
 * Modification  History:
 * Date         	Author        		Version        	Description
 * -----------------------------------------------------------------------------------
 * 2015/12/5 0005       XiYoung              1.0                   1.0
 * Why & What is modified:
 */
public interface ChannelDaoInterface {
    /**
     * 添加缓存ChannelItem
     * @param item
     */
    boolean addCache(ChannelItem item);

    /**
     * 删除
     * @param where
     * @param whereArgs
     */
    public boolean deleteCache(String whereClause, String[] whereArgs);
    /**
     * 更新
     * @param values
     * @param whereClause
     * @param whereArgs
     */

    public boolean updateCache(ContentValues values, String whereClause,
                               String[] whereArgs);

    /**


     *
     * @param selection
     * @param selectionArgs
     * @return
     */
    public Map<String, String> viewCache(String selection,
                                         String[] selectionArgs);

    /**
     *
     * @param selection
     * @param selectionArgs
     * @return
     */
    public List<Map<String, String>> listCache(String selection,
                                               String[] selectionArgs);

    /**
     *清除
     */
    public void clearFeedTable();

}
